/*
 * @Author: 瞿旺兴 18774621495@163.com
 * @Date: 2022-05-18 14:37:18
 * @LastEditors: 瞿旺兴 18774621495@163.com
 * @LastEditTime: 2022-06-13 13:49:19
 * @FilePath: \nien-vue3-admin\src\api\finance\FinancialManagementTools.ts
 * @Description: 财务管理工具接口
 */
import request from '@/utils/request'
// ------------------------客户开票信息管理

/**
 * @description:查询列表集合
*/
export const collectionTicketingInfoList = function (data) {
  return request({
    url: 'finance/collectionTicketingInfo/list',
    method: 'post',
    data,
  })
}

/**
 * @description:新增客户开票信息
*/
export const insert = function (data) {
  return request({
    url: 'finance/collectionTicketingInfo/insert',
    method: 'post',
    data,
  })
}
/**
 * @description:修改客户开票信息
*/
export const update = function (data) {
  return request({
    url: 'finance/collectionTicketingInfo/update',
    method: 'put',
    data,
  })
}
/**
 * @description:删除客户开票信息
*/
export const deleteInfo = function (ids) {
  return request({
    url: `/finance/collectionTicketingInfo/delete/${ ids }`,
    method: 'delete',
  })
}
/**
 * @description:导入客户开票信息
*/
export const importInfo = function (data) {
  return request({
    url: '/finance/collectionTicketingInfo/import',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
    },
  })
}
// -------------------收款账号
/**
 * @description:列表集合
*/
export const collectionInfoList = function (data) {
  return request({
    url: '/finance/collectionInfo/list',
    method: 'post',
    data,
  })
}
/**
 * @description:新增收款账号
*/
export const collectionInfoInsert = function (data) {
  return request({
    url: '/finance/collectionInfo/insert',
    method: 'post',
    data,
  })
}
/**
 * @description:修改收款账号
*/
export const collectionInfoUpdate = function (data) {
  return request({
    url: '/finance/collectionInfo/update',
    method: 'PUT',
    data,
  })
}
/**
 * @description:删除收款账号
*/
export const collectionInfoDelete = function (ids) {
  return request({
    url: `finance/collectionInfo/delete/${ ids }`,
    method: 'delete',
  })
}

// -------------------汇率维护
/**
 * @description:列表集合
*/
export const exchangeList = function (data) {
  return request({
    url: '/finance/exchange/list',
    method: 'post',
    data,
  })
}
/**
 * @description:新增收款账号
*/
export const exchangeInsert = function (data) {
  return request({
    url: '/finance/exchange/add',
    method: 'post',
    data,
  })
}
/**
 * @description:修改收款账号
*/
export const exchangeUpdate = function (data) {
  return request({
    url: '/finance/exchange/edit',
    method: 'PUT',
    data,
  })
}
/**
 * @description:删除收款账号
*/
export const exchangeDelete = function (ids) {
  return request({
    url: `finance/exchange/remove/${ ids }`,
    method: 'delete',
  })
}